package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 黄佳辉
 * @since 2023-01-04
 */
@Getter
@Setter
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    private String username;

    private String password;

    private String name;

    /**
     * 0未知	            1 男	            2女	            
     */
    private Integer gender;

    private String mobile;

    private String email;

    private String roleId;

    /**
     * 1 正常	            2 锁定	            3 禁用	            。。。。
     */
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    /**
     * 0 未删除	            1已删除
     */
    @TableLogic
    private Boolean isdel;

    private LocalDateTime lastLoginTime;


}
